package com.example.demo.EmailTest;

import com.example.demo.EmailTest.util.EmailUtil;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class EmailOne {

    public static void main(String[] args) throws Exception {

        Map<String, Object> map = new HashMap<>(2);

        //收件人姓名
        map.put("recipientName","大宝贝!");
        //收件人邮箱
        map.put("recipientEmail","987696810@qq.com");

        EmailUtil.sendMail(map,"鲁峰","邮箱标题","邮箱内容");

    }

}
